package top.dotgo.model.shop;

import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import top.dotgo.model.IBaseEntity;

import javax.persistence.*;

/**
 * 商家 员工(ShopStaff)实体类
 *
 * @author jornl
 * @date 2020-05-21 00:03:49
 */
@Entity
@Data
@Accessors(chain = true)
@Table(name = "shop_staff")
public class ShopStaffEntity implements IBaseEntity, Serializable {
       /**
     * 主键id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "custom-id")
    @GenericGenerator(name = "custom-id", strategy = "top.dotgo.model.kit.CustomIDGenerator")
     @Column(name = "id")
     private Long id;
    
    /**
     * 账号表关联id
     */
     @Column(name = "acc_id")
     private Long accId;
    
    /**
     * 人员所属的总公司id
     */
     @Column(name = "top_company_id")
     private Long topCompanyId;
    
    /**
     * 人员所属的分公司id
     */
     @Column(name = "company_id")
     private Long companyId;
    
    /**
     * 人员所属的部门id
     */
     @Column(name = "dep_id")
     private Long depId;
    
    /**
     * 工号
     */
     @Column(name = "staff_no")
     private String staffNo;
    
    /**
     * 备注信息
     */
     @Column(name = "remark")
     private String remark;
    
    /**
     * 创建人
     */
     @Column(name = "create_by")
     private Long createBy;
    
    /**
     * 创建时间
     */
     @Column(name = "create_time")
     private Date createTime;
    
    /**
     * 修改人
     */
     @Column(name = "edit_by")
     private Long editBy;
    
    /**
     * 修改时间
     */
     @Column(name = "edit_time")
     private Date editTime;
    
    
     @Column(name = "del_by")
     private Long delBy;
    
    
     @Column(name = "del_time")
     private Date delTime;
    
    /**
     * 用户状态：0禁用，1启用
     */
     @Column(name = "status")
     private Integer status;
    


}